import request from '@/utils/request'

//查询所有商品类别
export const shopList = shopDto =>
  request({
    url: '/admin/shop/list',
    method: 'get',
    params: shopDto,
  })
//添加和修改商品类别
export const saveOrUpdate = shop =>
  request({
    url: '/admin/shop/save',
    method: 'post',
    params: shop,
  })
//添加和修改商品类别
export const deleteShop = id =>
  request({
    url: '/admin/shop/delete',
    method: 'get',
    params: { id: id },
  })
